package com.kuang.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

//Ribbon 和Eureka 整合以后，客户端可以直接调用 ，不用关心IP地址
@EnableEurekaClient  //开启Eureka客户端配置负载均衡
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.kuang.springcloud"})
@ComponentScan("com.kuang.springcloud")
public class FeignDeptConsumer_80 {

    public static void main(String[] args) {
        System.out.println("80端口启动成功");
        SpringApplication.run(FeignDeptConsumer_80.class,args);
    }
}
